package chapterThree.literals;

import java.awt.Dimension;
import java.util.Date;

public class Examples {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		/*

		
		 int x = 0536;
		    System.out.println("x = " + x);
		    
		double a=51165468465.65464654654654D;
		float b=51165468465.65464654654654f;
		float c=(float)51165468465.65464654654654;
		
		System.out.println(a);
		System.out.println(b);
		System.out.println(c);
		char v=(char) -20;
		int aa=Character.MIN_RADIX;
		int bb=Character.MAX_RADIX;
	 System.out.println("---------------------------------------------------");
	 byte nt=127;
	 byte nl=-128;
	 byte nk=(byte) (nt+nl);
	 System.out.println(nk);
	 System.out.println("---------------------------------------------------");
	 long l=865L;
	 byte bl=(byte)l;
	 System.out.println(865%128);
	 System.out.println(bl);
	 System.out.println("---------------------------------------------------");
	 float myf=32.3f;
	 System.out.println("---------------------------------------------------");
	 byte myb=3;
	 myb+=129;
	 //myb=myb+7;
	 System.out.println(myb+7);
	 System.out.println("---------------------------------------------------");
	 int vara;
	 int varb=vara;
	 varb=30;
	 System.out.println("--------"+vara+"--------"+varb);
	 System.out.println("---------------------------------------------------");
	 go();
	 System.out.println("---------------------------------------------------");
	 Date dte=null;
	 if(dte==null)
	 System.out.println("---------------------------------------------------");
	 System.out.println("---------------------------------------------------");*/
	 /*
	 String stringA="hello world";
	 String stringB=stringA;
	 stringA+=" :)";
		modifyit(stringA);
	 System.out.println("String a :"+stringA);
	 System.out.println("String b :"+stringB);
	 */
	 Dimension d=new Dimension(3,8);
	 modifyDim(d);
	 System.out.println(d.getWidth()+"-"+d.getHeight());
	}

	private static void modifyDim(Dimension d) {
		d.setSize(33, 15);
		d=new Dimension(0,0);
		
	}

	private static void modifyit(String stringA) {
		stringA="string modified";
		
	}

	public static void go(){
		int a;
		System.out.println(a=010);
		
	}
	
}
